deprecated in favor of [lib]"));
}
if has_old_build {
- manifest.add_warning(format!("warning: the old build command has been deprecated"));
+ manifest.add_warning(format!("warning: an arbitrary build command \
+ has now been deprecated."));
+ manifest.add_warning(format!(" It has been replaced by custom \
+ build scripts."));
+ manifest.add_warning(format!(" For more information, see \
+ http://doc.crates.io/build-script.html"));
}
Ok((manifest, nested_paths))
}
{compiling} foo v0.5.0 (file://[..])
{running} `[..]build-script-build[..]`
{running} `rustc [..] --crate-name foo [..]`
-{running} `rustc [..] --test [..]`
+{running} `rustc [..] --crate-name foo [..]`
{running} `[..]foo-[..]`
running 0 tests
execs().with_status(0)
.with_stdout(format!(" Compiling foo v0.5.0 ({})\n",
p.url()))
- .with_stderr("warning: the old build command has been deprecated"));
+ .with_stderr("warning: [..] deprecated.\n\
+ [..]\n\
+ [..]"));
})
test!(old_custom_multiple_build {
assert_that(p.cargo_process("build"),
execs().with_status(0)
.with_stdout(format!(" Compiling foo v0.5.0 ({})\n",
- p.url()))
- .with_stderr("warning: the old build command has been deprecated"));
+ p.url())));
})
test!(old_custom_build_failure {
"#);
assert_that(p.cargo_process("build"),
execs().with_status(101).with_stderr(format!("\
-warning: the old build command has been deprecated\n\
+warning: an arbitrary build command has now been deprecated.
+ [..]
+ [..]
Failed to run custom build command for `foo v0.5.0 ({dir})`
Process didn't exit successfully: `{}` (status=101)\n\
--- stderr\n\
"#);
assert_that(p.cargo_process("build"),
execs().with_status(101).with_stderr(format!("\
-warning: the old build command has been deprecated\n\
+warning: an arbitrary build command has now been deprecated.
+ [..]
+ [..]
Failed to run custom build command for `foo v0.5.0 ({dir})`
Process didn't exit successfully: `{}` (status=101)\n\
--- stderr\n\